<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="com.shxt.lesson29.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
    <%
        String dbName = "test";
        DBManager dbm = new DBManager(dbName, "root", "");
        
        request.setCharacterEncoding("utf-8");
        String id = request.getParameter("id");
        String sql = "delete from book where id = " + id;
        // out.println(sql);
        dbm.executeUpdate(sql);
        
        response.sendRedirect("BookSystem.jsp");
    %>
</body>
</html>